

import {get, post} from "./ajax"

export const ajax = {
    //获取token
    getToken:params=>get("/react/gettoken",params),
    //登录
    login:params=>post("/react/login",params),
    //发送验证码
    sendcaptcha:params=>get("/react/sendcaptcha",params),
    //检验验证码
    verifycaptcha:params=>get("/react/verifycaptcha",params),
    //获取用户信息
    getuserinfo:params=>get("/react/getuserinfo",params),
    //上传头像
    uploadavatar:params=>post("/react/uploadavatar",params),
    //获取用户列表
    getuserlist:params=>get("/react/getuserlist",params),
    //添加用户
    addusers:params=>post("/react/addusers",params),
    //删除用户
    deluserone:params=>post("/react/deluserone",params),
    //修改用户
    updateuserone:params=>post("/react/updateuserone",params),
    //查询意见列表
    findadviselist:params=>post("/react/findadviselist",params),
    //删除意见
    deladviseone:params=>post("/react/deladviseone",params),
    //获取意见
    getadviseone:params=>post("/react/getadviseone",params),
    //修改意见  
    updateadviseone:params=>post("/react/updateadviseone",params),
    //增加热度
    addhot:params=>post("/react/addhot",params),
    //添加意见
    addadviseone:params=>post("/react/addadviseone",params),
    //上传文件图片
    uploadfileimg:params=>post("/react/uploadfileimg",params),
    //新增通知
    addnotice:params=>post("/react/addnotice",params),
    //查询通知
    findnoticelist:params=>post("/react/findnoticelist",params),
    //删除通知
    delnotice:params=>post("/react/delnotice",params),
    //查询通知详情
    getnotice:params=>post("/react/getnotice",params),
    //修改通知
    updatnotice:params=>post("/react/updatnotice",params),
  
}